package com.company.vmvp.api;

import com.company.vmvp.ui.AppConstant;

/**
 * 作者：kkan on 2017/01/30
 * 当前类注释:
 * 封装服务器返回数据
 * 类中的参数是可以修改的
 */
public class HttpResult {

    private int code;
    private String msg;

    public boolean success() {
        return code == AppConstant.HttpSuccessCode;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
